#!/bin/bash

for i in $(seq 0 32);
do
	a=0
	b=$[a+i]

	echo "a = ${a}, b = ${b}"

	for j in $(seq 0 16);
	do
		c=$[a*$[16-$j]+b*$j]
		echo $c
	done
done